import { IntersectionType, OmitType, PartialType } from "@nestjs/swagger";

import { QueryDto } from "@/core/dto/query.dto";

import { CreateArticleDto } from "./create-article.dto";

export class QueryArticleDto extends IntersectionType(
    QueryDto,
    PartialType(OmitType(CreateArticleDto, ["content", "coverImage"] as const))
) {}
